home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK2.toast / Development Kits (Disc 2) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / CustomWriterGX / NewApp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-05  |  2.5 KB  |  81 lines  |  [TEXT/MPS ]

  1. /*
  2.     FILENAME
  3.         CommonDefines.h
  4.  
  5.     DESCRIPTION
  6.         Contains defines and prototypes used by more than one .r or .h file.
  7.  
  8.     COPYRIGHT
  9.         Copyright © 1995 Apple Computer, Inc.
  10.         All rights reserved.
  11.     
  12.     Modification history
  13.         10/04/95 - David Hayward -    Version 1.0.4 modified code so that
  14.                                     the driver can be build under MPW,
  15.                                     Metrowerks, and Symantec.  In general,
  16.                                     all that was required to do this was 
  17.                                     to add an inline-assembly jumptable
  18.                                     and to store all globals off of the
  19.                                     message manager instance context.
  20.                                     Also made a few changes so that the
  21.                                     driver can be rebuilt to support any
  22.                                     resolution by changing the #defines
  23.                                     kResolution and kPatStretch in
  24.                                     "CommonDefines.h"
  25.  
  26.         06/14/95 - Dave Hersey -    Version 1.0.3 to fix a bug in
  27.                                     CustomBufferingAndIO.c when creating
  28.                                     high-res PICTs, and to make the size
  29.                                     of buffers more flexible.
  30.  
  31.         05/26/95 - Dave Hersey -    Version 1.0.2 to add the new 'outp'
  32.                                     desktop printer resource in NewApp.c.
  33.  
  34.         05/03/95 - Dave Hersey -    Version 1.0.1 to fix some minor bugs in
  35.                                     CustomBufferingAndIO.c.
  36.  
  37.         01/14/95 - Dave Hersey -    Created from the shell of a hollowed-out
  38.                                     ImageWriter driver.
  39. */
  40.  
  41.  
  42. #include <Devices.h>
  43. #include <Errors.h>
  44. #include <FixMath.h>
  45. #include <Folders.h>
  46. #include <Fonts.h>
  47. #include <Memory.h>
  48. #include <QuickDraw.h>
  49. #include <Resources.h>
  50. #include <Script.h>
  51. #include <ToolUtils.h>
  52. #include <Types.h>
  53.  
  54. #include <GXGraphics.h>
  55. #include <GXExceptions.h>
  56. #include <GXLayout.h>
  57. #include <GXMath.h>
  58. #include <GXPrinterDrivers.h>
  59. #include <GXPrinting.h>
  60.  
  61.  
  62. // Our prototypes in alphabetical order.
  63.  
  64. OSErr    SD_ChooserMessage            ( short message, short caller, StringPtr objName, StringPtr zoneName, ListHandle theList, long p2 ) ;
  65. OSErr    SD_DefaultDesktopPrinter    ( Str31 dtpName ) ;
  66. OSErr    SD_RasterDataIn                ( gxOffscreenHdl hOffscreen, gxRectangle *bandRect, gxRectangle *dirtyRect ) ;
  67. OSErr    SD_OpenConnection            ( void ) ;
  68. OSErr    SD_CloseConnection            ( void ) ;
  69. void    SD_CleanupOpenConnection    ( void ) ;
  70. OSErr    SD_BufferData                ( Ptr data, long length, long bufferOptions ) ;
  71. OSErr    SD_FreeBuffer                ( gxPrintingBuffer *theBuffer ) ;
  72. OSErr    SD_WriteData                ( Ptr data, long length ) ;
  73. OSErr    SD_DumpBuffer                ( gxPrintingBuffer *theBuffer ) ;
  74. OSErr    SD_ImageJob                    ( gxSpoolFile theSpoolFile, long *closeOptions ) ;
  75. OSErr    SD_StartSendPage            ( gxFormat pageFormat ) ;
  76. OSErr    SD_FinishSendPage            ( void ) ;
  77. OSErr    SD_SetupImageData            ( gxRasterImageDataHdl hImageData ) ;
  78.  
  79. //OSErr    WriteRawData                ( void *dataBuffer, long dataLength ) ;
  80.  
  81.